﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Animal
    {
        public int Lag { get; set; }

      

        public void Publicaction() {
            Console.WriteLine("我会走路");
            Console.WriteLine("我会吃饭");
            Console.WriteLine("我会睡觉");
        }
        public virtual  void Legcount()
        {
            //Console.WriteLine("我有{0}腿",this.Lag);
        }
        public virtual void Jiao()
        {
            //Console.WriteLine("我会叫");
        }

    }
}
